package com.edt.ichannel.api.service.impl;

import com.edt.ichannel.api.dao.FlowExchangeLogDao;
import com.edt.ichannel.api.entiy.local.FlowExchangeLog;
import com.edt.ichannel.api.entiy.local.FlowExchangeLogDetail;
import com.edt.ichannel.api.service.FlowExchangeLogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 肖瑶
 */
@Service
public class FlowExchangeLogServiceImpl implements FlowExchangeLogService {

    @Resource
    private FlowExchangeLogDao flowExchangeLogDao;
    /**
     * 保存充值记录
     * @param flowExchangeLog 充值记录实体
     */
    @Override
    public void saveFlowExchangeLog(FlowExchangeLog flowExchangeLog) {
        flowExchangeLogDao.saveFlowExchangeLog(flowExchangeLog);
    }

    @Override
    public List<FlowExchangeLogDetail> getFlowExchangeLogByCondition(String mechanismsId, String phone)
    {
        return flowExchangeLogDao.getFlowExchangeLogByCondition(mechanismsId,phone);
    }
}
